/*
 * Exploder
 * 
 * Tero Pyylampi (218437), Jussi Tuurinkoski (211594)
 *
 * Interface for the game engine
 */

#include "LayerInterface.h"
#include "../GameScene.h"
#include "../interface/GameInterfaceEngine.h"

// default constructor
LayerInterface::LayerInterface( GameScene *scene ) : mGameScene( scene ) {
	mInterfaceEngine = new GameInterfaceEngine();
	mInterfaceEngine->createGameModeInterface( this, mGameScene->getMaster(), mGameScene );
}

// destructor
LayerInterface::~LayerInterface() {

}

// update interface
void LayerInterface::update( cocos2d::ccTime dt ) {
	mInterfaceEngine->update( dt );
}

// get interface engine
GameInterfaceEngine *LayerInterface::getInterfaceEngine() {
	return mInterfaceEngine;
}